<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<% String basePath = request.getContextPath(); %>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet"  href="<%=basePath%>/assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"  href="<%=basePath%>/assets/bootstrap/css/dashboard.css">
<link rel="stylesheet"  href="<%=basePath%>/assets/bootstrap/css/ie10-viewport-bug-workaround.css">
<script type="text/javascript" src="<%=basePath %>/assets/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="<%=basePath %>/assets/bootstrap/js/bootstrap-3.3.7.min.js"></script>
<script type="text/javascript" src="<%=basePath %>/assets/bootstrap/js/ie-emulation-modes-warning.js"></script>
<script type="text/javascript" src="<%=basePath %>/assets/bootstrap/js/holder.min.js"></script>
<script type="text/javascript" src="<%=basePath %>/assets/bootstrap/js/ie10-viewport-bug-workaround.js"></script>
<script type="text/javascript" src="<%=basePath %>/assets/menu/menu.js"></script>
<script type="text/javascript" src="<%=basePath %>/assets/js/myValidate.js"></script>
<script type="text/javascript" src="<%=basePath %>/assets/js/grid.js"></script>
<script type="text/javascript" src="<%=basePath %>/js/common.js"></script>
 <script type="text/javascript" src="<%=basePath %>/js/autoForm.js"></script>
 <script type="text/javascript" src="<%=basePath %>/assets/js/colResizable-1.6.js"></script>
<style type="text/css">
	.top_item{
		font-size: 15px;
		cursor: pointer;
	}
	.navbar{
		 background-color: #2d89ef;
	}
	.navbar-inverse .navbar-brand{
		color: white;
	}
	.system_info{
		margin-top: 15px;
		margin-right: 10px;
	}
	.navbar-brand{
	    float: left;
  	  	height: 70px;
    	padding: 0px 0px;
    	font-size: 18px;
    	line-height: 20px;
	}
	.container-fluid {
	    padding-right: 15px;
	    padding-left: 15px;
	    margin-right: auto;
	    margin-left: auto;
    }
    .bgcolor-3{
    	background: "";
    }
    .mainAtoos{
    	font-size:14.5px;
    }
</style>
<script type="text/javascript">
var basePath = "${pageContext.request.contextPath}";
 $(function(){
	$("#topMenuId").initMenu({
		menuId: "leftMenu",
		loadPageId: "loadJspPage",
		url: basePath + "/dynamicForm/dynamicFormAction.do?method=loadMenuJsonData",
		backFunction:function(obj){
			$("#loadJspPage").load(basePath+$(obj).attr("url"),{},function(){
					var dataGrid = {
							"name": $(obj).attr("table_name"),
							"start":0,
							"limit": 20
					};
				var options = {
					gridTableId: "gridTableId",
					table_title:"title_id",
					tbodyId:"info_tbody_id",
					pagination:"pagination",
					loadGridDataUrl:basePath + "/dynamicForm/dynamicFormAction.do?method=getList",
					loadGridTitleUrl: basePath + "/dynamicForm/dynamicFormAction.do?method=getTableInfoByEnName",
					checkbox:true,
					checkboxId: "add_checkbox",
					data:dataGrid, 
					tableNameId: "tableNameId",
					searchId: "search",
					searchCondition: "partPage",
					imgColunm: "imgUrl",
					backFunction:function(obj){
						
					}
				}
				$(this).loadGridTitle(obj,options);
			});
		}
	});
});
</script>
<title>主页</title>
</head>
<body>
	<nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <div class="navbar-brand" style="font-size: 1.15em;font-weight: normal;">
          	<img alt="logo" src="<%=basePath %>/assets/allImage/logo.png">
          </div>
      	  <ul id="topMenuId" class="nav navbar-nav navbar-right" style="font-size: 17px;margin-left: 110px;">
      	  </ul>
        </div>
        <div id="navbar" class="navbar-collapse collapse" style="color: white;">
          <ul class="nav navbar-nav navbar-right">
           	<li class="system_info mainAtoos">登陆名称：admin </li>
           	<li class="system_info mainAtoos" style="cursor: pointer;">退出</a></li>
          </ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div id="leftMenu" class="col-sm-3 col-md-2 sidebar" style="margin-top: 20px;padding-left: 0px;
        					background-color: white;padding: 0px;">
  			
		</div>
	
        </div>
        <div id="loadJspPage" class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" 
        	style="width: 83%;padding: 30px 0px 0px 0px;">
          	加载子菜单页面
        </div>
       
      </div>
    
</body>
</html>